﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StuertzDatenbank
{
    class Fuellmaterialcomparer : IEqualityComparer<Fuellmaterial>
    {

        public bool Equals(Fuellmaterial b1, Fuellmaterial b2)
        {
            if (b1.getID() == b2.getID())
            {

                return true;
            }
            else
            {
                return false;
            }

        }

        public int GetHashCode(Fuellmaterial bx)
        {
            int hCode = bx.GetHashCode();
            return hCode.GetHashCode();
        }
    }
}
